<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/lunbo.css">
</head>
<body>
    <div class="lunbo">
        <div class="box" style="left: 0px;">
            <img src="img/4.png" alt="">
            <img src="img/2.png" alt="">
            <img src="img/3.png" alt="">
        </div>
    </div>
   
    <script>
        var box=document.getElementsByClassName('box')[0];
        var timer=setInterval(function(){
            box.style.left=parseInt(box.style.left)-300+'px';
            if(parseInt(box.style.left)==-900){
                box.style.left=0+'px';
            }
        },1500);
        
    </script>
</body>
</html>